desc "Print out all the currently defined REST routes." 
task :rest_routes => :environment do
  puts ActionController::Routing::Routes.routes.map { |r| 
    sprintf "%30s => %s", r.path.inspect, r.known.inspect
  } rescue puts ActionController::Routing::Routes.routes
end
